package edu.tyut.game.logic.model

import android.os.Parcelable
import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey
import kotlinx.parcelize.Parcelize


@Entity(tableName = "user", indices = [Index(value = ["username"], unique = true)])
@Parcelize
data class User(
    @PrimaryKey(autoGenerate = true)
    val id: Int,
    val username: String, var password: String, val gender: String,
    val email: String,
    val phone: String?, var avatarPath: String?
) : Parcelable
